﻿using MoonFramework.Net;
using Serilog;

namespace GameServer
{
	internal class Program
	{
		private static async Task Main(string[] args)
		{
			//初始化日志环境
			Log.Logger = new LoggerConfiguration()
				.MinimumLevel.Debug()	// debug, info, warn, error 优先级
				.WriteTo.Console()		//输出到控制台	
				.WriteTo.File("logs\\log.txt", rollingInterval: RollingInterval.Day) //输出到文件，多久生成
				.CreateLogger(); 
			
			Log.Debug("hello world");
			NetService netService = new(8086);
			netService.Start(10);

			Console.ReadKey();
		}
	}
}